-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmarks for create_client #1392
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f8d41b5
to
d0b1dae
Compare
22985f7
to
2a6da02
Compare
d0b1dae
to
43a5099
Compare
2a6da02
to
81ed359
Compare
43a5099
to
de7f9bb
Compare
81ed359
to
80a2006
Compare
de7f9bb
to
da408b0
Compare
80a2006
to
570bff5
Compare
da408b0
to
bdfae14
Compare
570bff5
to
e6c95c8
Compare
bdfae14
to
abd8aeb
Compare
e6c95c8
to
aa09510
Compare
abd8aeb
to
c432f08
Compare
aa09510
to
60a44dc
Compare
c432f08
to
91dbcd4
Compare
60a44dc
to
7334ebe
Compare
91dbcd4
to
3df89c2
Compare
7334ebe
to
8067f17
Compare
3df89c2
to
919f767
Compare
8067f17
to
defd953
Compare
919f767
to
615d449
Compare
defd953
to
9d8cc2c
Compare
615d449
to
78b7065
Compare
9d8cc2c
to
cd99a8f
Compare
78b7065
to
659acd1
Compare
cd99a8f
to
6c966d7
Compare
659acd1
to
718950b
Compare
6c966d7
to
40fc431
Compare
718950b
to
9b9da95
Compare
40fc431
to
f1741b9
Compare
9b9da95
to
0b8d1fe
Compare
f1741b9
to
ecd5f83
Compare
0b8d1fe
to
fd98665
Compare
3835116
to
dae833b
Compare
e1d8afd
to
02e809c
Compare
02e809c
to
c3caaf7
Compare
While it would improve performance, I'm not sure it's desirable. If there is something wrong with your identity or credentials we would want to bubble that up to the caller as soon as possible. |
c3caaf7
to
ebc2ef5
Compare
} | ||
|
||
#[cfg(any(test, feature = "test-utils"))] | ||
pub struct WorkerHandle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was giving a bunch of unused
in bindings_node
, since it doesn't rely on test-utils
in their dev dependencies. I moved it to utils/test/mod.rs
to make it easier to manage the dependencies specific to the WorkerHandle and those in non-test stuff. Re-exported here for ease of use
yeah definitely leaning towards just pulling Tonic out of create_client/making it an `Option' |
5f0810a
to
49ef097
Compare
Benchmarks against dev_grpc:
Flamegraph:
According to flamegraph, we're spending the most time in
tonic::Endpoint::connect
We could use
connect_lazy
but that just offloads it to the next api call, which in this case is related to initializing the identity (get_inbox_ids).In another PR I'd like to either:
connect_lazy
but would require a refactor of client creation to somehow defer identity verification to the background. Seems like maybe a messy/big refactor path